package com.gnerv.pabu.sso.service.impl;

import com.gnerv.pabu.sso.service.SsoService;
import com.gnerv.pabu.sso.utils.JwtUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@Service
public class SsoServiceImpl implements SsoService {

    @Override
    public boolean checkAccount() {
        return true;
    }

    @Override
    public String createToken() {
        Map<String, String> map = new HashMap<>();
        map.put("accountId", "asdsadasdasdas");
        String token = JwtUtils.create(map);
        return token;
    }

}
